//package com.kvn.dal.core.single_node;
//
//import java.util.Random;
//
//import org.joda.time.DateTime;
//import org.quartz.JobExecutionContext;
//import org.quartz.JobExecutionException;
//import org.springframework.stereotype.Service;
//
//import com.kvn.dal.core.TimedTask;
//import com.kvn.dal.core.task.ExecutableTask;
//
///**
// * Created by wzy on 2017/5/24.
// */
//@TimedTask(corn = "0 0/1 * * * ?", desc = "测试SingleNodeJob")
//@Service
//public class SingleNodeJob implements ExecutableTask {
//    @Override
//    public void execute(JobExecutionContext context) throws JobExecutionException {
//        System.out.println(DateTime.now() + "--" + Thread.currentThread().getName() + "---------------doBizJob2222--------");
//        try {
//			Thread.sleep(3000L);
//		} catch (InterruptedException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//        
//        if(new Random().nextInt() % 2 == 0){
//        	throw new RuntimeException("biz执行MyTestJob2异常，xxxxxxxxx");
//        }
//    }
//}
